package com.openthinks.joyniproject.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.openthinks.joyniproject.dao.DeptDao;
import com.openthinks.joyniproject.model.Dept;
import com.openthinks.joyniproject.service.DeptService;

/**
 * 部门Service 实现
 * @since 
 *		v1.0
 * @version
 * 		v1.0, 2013-06-27 19:39:30
 * @author 
 *		Cloud
 */
@Service
public class DeptServiceImpl implements DeptService{
	
	@Autowired
	private DeptDao dao;
	
	@Override
	public List<Dept> findAll() {
		
		return dao.findAll();
	}

	@Override
	public Dept findById(Long id) {
		
		return dao.findById(id);
	}

	@Override
	public List<Dept> findSubByPid(Long pid) {
		
		return dao.findSubByPid(pid);
	}
}
